
// 平台
const platformMap: Record<number, string> = {
    1: 'Amazon',
    2: '海外仓',
}
export function getPlatformName(code: number): string {
    return platformMap[code] || '未知平台';
}

// 发货方式
const shippingMethodMap: Record<number, string> = {
    1: '海外仓',
    2: '海运',
}
export function getShippingMethod(code: number): string {
    return shippingMethodMap[code] || '未知发货方式';
}

// 物流付款状态
const logisticalPaymentStatusMap: Record<number, string> = {
    0: '未付款',
    1: '已付款',
}
export function getLogisticalPaymentStatus(code: number): string {
    return logisticalPaymentStatusMap[code] || '';
}

// 计抛/计重
const weightCalculateMap: Record<number, string> = {
    1: '计抛',
    2: '计重',
}
export function getWeightCalculate(code: number): string {
    return weightCalculateMap[code] || '';
}

// 接收状态
const receiveStatusMap: Record<number, string> = {
    0: '未接收',
    1: '已接收',
}
export function getReceiveStatus(code: number): string {
    return receiveStatusMap[code] || '';
}

const trueOrFalseMap: Record<number, string> = {
    0: '否',
    1: '是',
}
export function getTrueOrFalse(code: number): string {
    return trueOrFalseMap[code] || '';
}